diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-06-29 16:55:02 +0300 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-07-19 09:53:52 +0300 |
commit | 07e19dff63e3d5d6500d831e36554ac9b1b0560e (patch) | |
tree | e921a551f3f7aa3b38fa253829efb735e2421fbb /fs/ubifs/master.c | |
parent | 39274a1e8dd18d47e7ba76a90adc384f14f20a4f (diff) | |
download | linux-07e19dff63e3d5d6500d831e36554ac9b1b0560e.tar.gz linux-07e19dff63e3d5d6500d831e36554ac9b1b0560e.tar.bz2 linux-07e19dff63e3d5d6500d831e36554ac9b1b0560e.zip |
UBIFS: remove mst_mutex
The 'mst_mutex' is not needed since because 'ubifs_write_master()' is only
called on the mount path and commit path. The mount path is sequential and
there is no parallelism, and the commit path is also serialized - there is only
one commit going on at a time.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'fs/ubifs/master.c')
-rw-r--r-- | fs/ubifs/master.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ubifs/master.c b/fs/ubifs/master.c index ab83ace9910a..1a4bb9e8b3b8 100644 --- a/fs/ubifs/master.c +++ b/fs/ubifs/master.c @@ -352,10 +352,9 @@ int ubifs_read_master(struct ubifs_info *c) * ubifs_write_master - write master node. * @c: UBIFS file-system description object * - * This function writes the master node. The caller has to take the - * @c->mst_mutex lock before calling this function. Returns zero in case of - * success and a negative error code in case of failure. The master node is - * written twice to enable recovery. + * This function writes the master node. Returns zero in case of success and a + * negative error code in case of failure. The master node is written twice to + * enable recovery. */ int ubifs_write_master(struct ubifs_info *c) { |