summaryrefslogtreecommitdiffstats
path: root/fs/ufs/ufs.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-06-16 04:27:05 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2015-07-06 17:39:26 -0400
commitdff7cfd36e305488421d82a0ed3dd0209c333745 (patch)
tree178f51048347e8cbc36a870769350bfac7349090 /fs/ufs/ufs.h
parent724bb09fdc06d4ff03757b25d6dba9ef1b133e8f (diff)
downloadtalos-obmc-linux-dff7cfd36e305488421d82a0ed3dd0209c333745.tar.gz
talos-obmc-linux-dff7cfd36e305488421d82a0ed3dd0209c333745.zip
ufs: kill lock_ufs()
There were 3 remaining users; in two of them we took ->s_lock immediately after lock_ufs() and held it until just before unlock_ufs(); the third one (statfs) could not be called from itself or from other two (remount and sync_fs). Just use ->s_lock in statfs and don't bother with lock_ufs at all. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ufs/ufs.h')
-rw-r--r--fs/ufs/ufs.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/ufs/ufs.h b/fs/ufs/ufs.h
index ea28b73a8b74..478f35b493a6 100644
--- a/fs/ufs/ufs.h
+++ b/fs/ufs/ufs.h
@@ -24,8 +24,6 @@ struct ufs_sb_info {
unsigned s_cgno[UFS_MAX_GROUP_LOADED];
unsigned short s_cg_loaded;
unsigned s_mount_opt;
- struct mutex mutex;
- struct task_struct *mutex_owner;
struct super_block *sb;
int work_queued; /* non-zero if the delayed work is queued */
struct delayed_work sync_work; /* FS sync delayed work */
@@ -172,7 +170,4 @@ static inline u32 ufs_dtogd(struct ufs_sb_private_info * uspi, u64 b)
return do_div(b, uspi->s_fpg);
}
-extern void lock_ufs(struct super_block *sb);
-extern void unlock_ufs(struct super_block *sb);
-
#endif /* _UFS_UFS_H */
OpenPOWER on IntegriCloud