[PATCH 0/2] rpc_pipe: clean up how dentry operations get set in rpc_pipefs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Recently, I proposed a patch on the linux-nfs list to silence a WARNING:

    [PATCH] rpc_pipefs: only set rpc_dentry_ops if d_op isn't already set

When reviewing that, Bruce (properly) pointed out that that patch sucked
since it just hacked around the warning and did nothing to improve the
code. This patchset is an attempt to correct that by making rpc_pipefs
use a consistent set of dentry_operations, and ensuring that they're set
on every dentry at d_alloc time.

Since Trond has already merged the earlier patch I sent into his
nfs-for-next branch, this is based on top of that.

Jeff Layton (2):
  rpc_pipe: export simple_dentry_operations and have rpc_pipefs use it
  rpc_pipe: set dentry operations at d_alloc time

 fs/libfs.c            |  9 +++++----
 include/linux/fs.h    |  1 +
 net/sunrpc/rpc_pipe.c | 24 +++++++++++++++---------
 3 files changed, 21 insertions(+), 13 deletions(-)

-- 
1.8.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux