···392392}393393EXPORT_SYMBOL_GPL(mnt_drop_write);394394395395+void mnt_drop_write_file(struct file *file)396396+{397397+ mnt_drop_write(file->f_path.mnt);398398+}399399+EXPORT_SYMBOL(mnt_drop_write_file);400400+395401static int mnt_make_readonly(struct vfsmount *mnt)396402{397403 int ret = 0;
+1-1
fs/ncpfs/ioctl.c
···901901 ret = __ncp_ioctl(inode, cmd, arg);902902outDropWrite:903903 if (need_drop_write)904904- mnt_drop_write(filp->f_path.mnt);904904+ mnt_drop_write_file(filp);905905out:906906 return ret;907907}
+3-3
fs/nfsd/nfs4recover.c
···151151 if (status)152152 goto out_put;153153 status = vfs_mkdir(dir->d_inode, dentry, S_IRWXU);154154- mnt_drop_write(rec_file->f_path.mnt);154154+ mnt_drop_write_file(rec_file);155155out_put:156156 dput(dentry);157157out_unlock:···281281 nfs4_reset_creds(original_cred);282282 if (status == 0)283283 vfs_fsync(rec_file, 0);284284- mnt_drop_write(rec_file->f_path.mnt);284284+ mnt_drop_write_file(rec_file);285285out:286286 if (status)287287 printk("NFSD: Failed to remove expired client state directory"···317317 status = nfsd4_list_rec_dir(purge_old);318318 if (status == 0)319319 vfs_fsync(rec_file, 0);320320- mnt_drop_write(rec_file->f_path.mnt);320320+ mnt_drop_write_file(rec_file);321321out:322322 if (status)323323 printk("nfsd4: failed to purge old clients from recovery"