]> git.neil.brown.name Git - history.git/commit
[PATCH] kNFSd cleanup of nfsd_open
authorChristoph Hellwig <hch@infradead.org>
Sat, 18 May 2002 05:03:58 +0000 (22:03 -0700)
committerChristoph Hellwig <hch@sb.bsdonline.org>
Sat, 18 May 2002 05:03:58 +0000 (22:03 -0700)
commit10e3215f139747aa886981aeecef5161b6ebe3b7
tree828e92964e4f7fed765509d458435e497ee39674
parentd995db9d9886783061eab6edf87f66ae38f071b1
[PATCH] kNFSd cleanup of nfsd_open

This patch makes nfsd_open use init_private_file to initilize
the file pointer the caller had allocated on stack.  In addition
a number of small cleanups:

 - format comments to be readable on 80char ANSI terminal
 - don't fop_get (and fop_put in nfsd_close), out file already
   is a reference to the inode so they can't go away.
 - don't decrement f_count on failure - it won't be checked anyway
 - don't check for filp->f_op n nfsd_close, it can't be NULL
fs/nfsd/vfs.c