aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2014-10-11 13:21:34 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-10-11 13:21:34 -0400
commitef4a48c513211d842c55e84f7a1c31884b91dcf7 (patch)
tree997ecc4d359a7307d6c0e55ab057fe9f9c2b888e /fs/gfs2
parent90d0c376f5ee1927327b267faf15bf970476f09e (diff)
parent1b2b32dcdb3df28dd103033c73cac2417fa05845 (diff)
Merge tag 'locks-v3.18-1' of git://git.samba.org/jlayton/linux
Pull file locking related changes from Jeff Layton: "This release is a little more busy for file locking changes than the last: - a set of patches from Kinglong Mee to fix the lockowner handling in knfsd - a pile of cleanups to the internal file lease API. This should get us a bit closer to allowing for setlease methods that can block. There are some dependencies between mine and Bruce's trees this cycle, and I based my tree on top of the requisite patches in Bruce's tree" * tag 'locks-v3.18-1' of git://git.samba.org/jlayton/linux: (26 commits) locks: fix fcntl_setlease/getlease return when !CONFIG_FILE_LOCKING locks: flock_make_lock should return a struct file_lock (or PTR_ERR) locks: set fl_owner for leases to filp instead of current->files locks: give lm_break a return value locks: __break_lease cleanup in preparation of allowing direct removal of leases locks: remove i_have_this_lease check from __break_lease locks: move freeing of leases outside of i_lock locks: move i_lock acquisition into generic_*_lease handlers locks: define a lm_setup handler for leases locks: plumb a "priv" pointer into the setlease routines nfsd: don't keep a pointer to the lease in nfs4_file locks: clean up vfs_setlease kerneldoc comments locks: generic_delete_lease doesn't need a file_lock at all nfsd: fix potential lease memory leak in nfs4_setlease locks: close potential race in lease_get_mtime security: make security_file_set_fowner, f_setown and __f_setown void return locks: consolidate "nolease" routines locks: remove lock_may_read and lock_may_write lockd: rip out deferred lock handling from testlock codepath NFSD: Get reference of lockowner when coping file_lock ...
Diffstat (limited to 'fs/gfs2')
-rw-r--r--fs/gfs2/file.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
index 7f4ed3daa38c..80dd44dca028 100644
--- a/fs/gfs2/file.c
+++ b/fs/gfs2/file.c
@@ -914,26 +914,6 @@ out_uninit:
914#ifdef CONFIG_GFS2_FS_LOCKING_DLM 914#ifdef CONFIG_GFS2_FS_LOCKING_DLM
915 915
916/** 916/**
917 * gfs2_setlease - acquire/release a file lease
918 * @file: the file pointer
919 * @arg: lease type
920 * @fl: file lock
921 *
922 * We don't currently have a way to enforce a lease across the whole
923 * cluster; until we do, disable leases (by just returning -EINVAL),
924 * unless the administrator has requested purely local locking.
925 *
926 * Locking: called under i_lock
927 *
928 * Returns: errno
929 */
930
931static int gfs2_setlease(struct file *file, long arg, struct file_lock **fl)
932{
933 return -EINVAL;
934}
935
936/**
937 * gfs2_lock - acquire/release a posix lock on a file 917 * gfs2_lock - acquire/release a posix lock on a file
938 * @file: the file pointer 918 * @file: the file pointer
939 * @cmd: either modify or retrieve lock state, possibly wait 919 * @cmd: either modify or retrieve lock state, possibly wait
@@ -1078,7 +1058,7 @@ const struct file_operations gfs2_file_fops = {
1078 .flock = gfs2_flock, 1058 .flock = gfs2_flock,
1079 .splice_read = generic_file_splice_read, 1059 .splice_read = generic_file_splice_read,
1080 .splice_write = iter_file_splice_write, 1060 .splice_write = iter_file_splice_write,
1081 .setlease = gfs2_setlease, 1061 .setlease = simple_nosetlease,
1082 .fallocate = gfs2_fallocate, 1062 .fallocate = gfs2_fallocate,
1083}; 1063};
1084 1064