From c42772121caf59f206e189facd935cbe95603488 Mon Sep 17 00:00:00 2001 From: Alexey Dobriyan Date: Mon, 21 Sep 2009 17:01:12 -0700 Subject: [PATCH] --- yaml --- r: 164363 b: refs/heads/master c: 7b021967c5e1463936042c8da72b550d3cabe9ac h: refs/heads/master i: 164361: 6bd9f5d45579b4e841d564db2bf16ee2395cdf94 164359: 4be115dabf9703fde6533485ed819802e1894f7d v: v3 --- [refs] | 2 +- trunk/fs/lockd/svclock.c | 2 +- trunk/fs/locks.c | 2 +- trunk/fs/nfsd/nfs4state.c | 4 ++-- trunk/include/linux/fs.h | 2 +- trunk/include/linux/lockd/lockd.h | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 9a53132f5ce1..b29773ba55d0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6aed62853c72e29f2c97bbac7712cb398e8c9437 +refs/heads/master: 7b021967c5e1463936042c8da72b550d3cabe9ac diff --git a/trunk/fs/lockd/svclock.c b/trunk/fs/lockd/svclock.c index e577a78d7bac..d1001790fa9a 100644 --- a/trunk/fs/lockd/svclock.c +++ b/trunk/fs/lockd/svclock.c @@ -705,7 +705,7 @@ static int nlmsvc_same_owner(struct file_lock *fl1, struct file_lock *fl2) return fl1->fl_owner == fl2->fl_owner && fl1->fl_pid == fl2->fl_pid; } -struct lock_manager_operations nlmsvc_lock_operations = { +const struct lock_manager_operations nlmsvc_lock_operations = { .fl_compare_owner = nlmsvc_same_owner, .fl_notify = nlmsvc_notify_blocked, .fl_grant = nlmsvc_grant_deferred, diff --git a/trunk/fs/locks.c b/trunk/fs/locks.c index 19ee18a6829b..a8794f233bc9 100644 --- a/trunk/fs/locks.c +++ b/trunk/fs/locks.c @@ -434,7 +434,7 @@ static int lease_mylease_callback(struct file_lock *fl, struct file_lock *try) return fl->fl_file == try->fl_file; } -static struct lock_manager_operations lease_manager_ops = { +static const struct lock_manager_operations lease_manager_ops = { .fl_break = lease_break_callback, .fl_release_private = lease_release_private_callback, .fl_mylease = lease_mylease_callback, diff --git a/trunk/fs/nfsd/nfs4state.c b/trunk/fs/nfsd/nfs4state.c index 980a216a48c8..766d3d544544 100644 --- a/trunk/fs/nfsd/nfs4state.c +++ b/trunk/fs/nfsd/nfs4state.c @@ -2163,7 +2163,7 @@ int nfsd_change_deleg_cb(struct file_lock **onlist, int arg) return -EAGAIN; } -static struct lock_manager_operations nfsd_lease_mng_ops = { +static const struct lock_manager_operations nfsd_lease_mng_ops = { .fl_break = nfsd_break_deleg_cb, .fl_release_private = nfsd_release_deleg_cb, .fl_copy_lock = nfsd_copy_lock_deleg_cb, @@ -3368,7 +3368,7 @@ nfs4_transform_lock_offset(struct file_lock *lock) /* Hack!: For now, we're defining this just so we can use a pointer to it * as a unique cookie to identify our (NFSv4's) posix locks. */ -static struct lock_manager_operations nfsd_posix_mng_ops = { +static const struct lock_manager_operations nfsd_posix_mng_ops = { }; static inline void diff --git a/trunk/include/linux/fs.h b/trunk/include/linux/fs.h index 6146dec21c35..51803528b095 100644 --- a/trunk/include/linux/fs.h +++ b/trunk/include/linux/fs.h @@ -1067,7 +1067,7 @@ struct file_lock { unsigned long fl_break_time; /* for nonblocking lease breaks */ const struct file_lock_operations *fl_ops; /* Callbacks for filesystems */ - struct lock_manager_operations *fl_lmops; /* Callbacks for lockmanagers */ + const struct lock_manager_operations *fl_lmops; /* Callbacks for lockmanagers */ union { struct nfs_lock_info nfs_fl; struct nfs4_lock_info nfs4_fl; diff --git a/trunk/include/linux/lockd/lockd.h b/trunk/include/linux/lockd/lockd.h index c325b187966b..ccf2e0dc077a 100644 --- a/trunk/include/linux/lockd/lockd.h +++ b/trunk/include/linux/lockd/lockd.h @@ -395,7 +395,7 @@ static inline int nlm_compare_locks(const struct file_lock *fl1, &&(fl1->fl_type == fl2->fl_type || fl2->fl_type == F_UNLCK); } -extern struct lock_manager_operations nlmsvc_lock_operations; +extern const struct lock_manager_operations nlmsvc_lock_operations; #endif /* __KERNEL__ */