X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Flockd%2Fsvcsubs.c;fp=fs%2Flockd%2Fsvcsubs.c;h=de7536358c7ce30651ea0b620d331ddf8be87175;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=0be7f080eb8a0eaa3aa10aa33680ce90a0e62670;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/fs/lockd/svcsubs.c b/fs/lockd/svcsubs.c index 0be7f080e..de7536358 100644 --- a/fs/lockd/svcsubs.c +++ b/fs/lockd/svcsubs.c @@ -67,7 +67,7 @@ nlm_lookup_file(struct svc_rqst *rqstp, struct nlm_file **result, down(&nlm_file_sema); for (file = nlm_files[hash]; file; file = file->f_next) - if (!memcmp(&file->f_handle, f, sizeof(*f))) + if (!nfs_compare_fh(&file->f_handle, f)) goto found; dprintk("lockd: creating file for (%08x %08x %08x %08x %08x %08x)\n", @@ -124,7 +124,7 @@ out_free: static inline void nlm_delete_file(struct nlm_file *file) { - struct inode *inode = file->f_file.f_dentry->d_inode; + struct inode *inode = file->f_file->f_dentry->d_inode; struct nlm_file **fp, *f; dprintk("lockd: closing file %s/%ld\n", @@ -133,7 +133,7 @@ nlm_delete_file(struct nlm_file *file) while ((f = *fp) != NULL) { if (f == file) { *fp = file->f_next; - nlmsvc_ops->fclose(&file->f_file); + nlmsvc_ops->fclose(file->f_file); kfree(file); return; } @@ -176,7 +176,7 @@ again: lock.fl_type = F_UNLCK; lock.fl_start = 0; lock.fl_end = OFFSET_MAX; - if (posix_lock_file(&file->f_file, &lock) < 0) { + if (posix_lock_file(file->f_file, &lock) < 0) { printk("lockd: unlock failure in %s:%d\n", __FILE__, __LINE__); return 1; @@ -230,7 +230,7 @@ nlm_traverse_files(struct nlm_host *host, int action) if (!file->f_blocks && !file->f_locks && !file->f_shares && !file->f_count) { *fp = file->f_next; - nlmsvc_ops->fclose(&file->f_file); + nlmsvc_ops->fclose(file->f_file); kfree(file); } else { fp = &file->f_next;