Whamcloud - gitweb
LU-1812 osd-ldiskfs: oti_obj_dentry needs d_sb set
authorJames Simmons <uja.ornl@gmail.com>
Mon, 8 Apr 2013 11:25:49 +0000 (07:25 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 Apr 2013 03:20:52 +0000 (23:20 -0400)
commit8b025e890dc67a3270bcea70dfd05fcf56b02408
tree4734718b211d4f03aee46ef29a5efca0be1af467
parentc20047193c2bc268e5c0782f4fed8d10525c1008
LU-1812 osd-ldiskfs: oti_obj_dentry needs d_sb set

Commit 431547b3 (v2.6.33) changed the generic xattr handlers to
use dentry->d_sb rather than dentry->d_inode->i_sb.

This patch ensures it's set before calling the xattr ops, which filter
through the generic xattr handlers.

Really, since any call into the kernel using a dentry can deref d_sb,
it should be set so we'll set it for fsync as well.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: I0ce38970cd839a220f852f96632b473011adbdc6
Reviewed-on: http://review.whamcloud.com/5120
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c