diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2011-12-09 08:06:57 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-01-03 22:52:40 -0500 |
commit | 2a79f17e4a641a2f463cb512cb0ec349844a147b (patch) | |
tree | 8801127310d0a3492941bb284e83393844a19685 /fs/nfsd/nfs4recover.c | |
parent | 8c9379e972e984d11c2b99121847ba9fa7a0c56c (diff) |
vfs: mnt_drop_write_file()
new helper (wrapper around mnt_drop_write()) to be used in pair with
mnt_want_write_file().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/nfsd/nfs4recover.c')
-rw-r--r-- | fs/nfsd/nfs4recover.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4recover.c b/fs/nfsd/nfs4recover.c index a9aa2f161262..80a0be9ed008 100644 --- a/fs/nfsd/nfs4recover.c +++ b/fs/nfsd/nfs4recover.c | |||
@@ -151,7 +151,7 @@ nfsd4_create_clid_dir(struct nfs4_client *clp) | |||
151 | if (status) | 151 | if (status) |
152 | goto out_put; | 152 | goto out_put; |
153 | status = vfs_mkdir(dir->d_inode, dentry, S_IRWXU); | 153 | status = vfs_mkdir(dir->d_inode, dentry, S_IRWXU); |
154 | mnt_drop_write(rec_file->f_path.mnt); | 154 | mnt_drop_write_file(rec_file); |
155 | out_put: | 155 | out_put: |
156 | dput(dentry); | 156 | dput(dentry); |
157 | out_unlock: | 157 | out_unlock: |
@@ -281,7 +281,7 @@ nfsd4_remove_clid_dir(struct nfs4_client *clp) | |||
281 | nfs4_reset_creds(original_cred); | 281 | nfs4_reset_creds(original_cred); |
282 | if (status == 0) | 282 | if (status == 0) |
283 | vfs_fsync(rec_file, 0); | 283 | vfs_fsync(rec_file, 0); |
284 | mnt_drop_write(rec_file->f_path.mnt); | 284 | mnt_drop_write_file(rec_file); |
285 | out: | 285 | out: |
286 | if (status) | 286 | if (status) |
287 | printk("NFSD: Failed to remove expired client state directory" | 287 | printk("NFSD: Failed to remove expired client state directory" |
@@ -317,7 +317,7 @@ nfsd4_recdir_purge_old(void) { | |||
317 | status = nfsd4_list_rec_dir(purge_old); | 317 | status = nfsd4_list_rec_dir(purge_old); |
318 | if (status == 0) | 318 | if (status == 0) |
319 | vfs_fsync(rec_file, 0); | 319 | vfs_fsync(rec_file, 0); |
320 | mnt_drop_write(rec_file->f_path.mnt); | 320 | mnt_drop_write_file(rec_file); |
321 | out: | 321 | out: |
322 | if (status) | 322 | if (status) |
323 | printk("nfsd4: failed to purge old clients from recovery" | 323 | printk("nfsd4: failed to purge old clients from recovery" |