From: Li Dongyang Date: Thu, 26 Mar 2015 01:53:24 +0000 (-0400) Subject: staging/lustre/llite: glimpse the inode before doing fiemap X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a915ffda199013a8ee2dd6a8a23b89ea45879ed3;p=pandora-kernel.git staging/lustre/llite: glimpse the inode before doing fiemap For a new inode, the i_size is 0 until a stat, which will yield an empty fiemap result. Fix the issue by glimpsing the size before doing fiemap. Signed-off-by: Li Dongyang Signed-off-by: Bob Glossman Reviewed-by: Andreas Dilger Reviewed-by: Jinshan Xiong Reviewed-on: http://review.whamcloud.com/13439 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6091 Signed-off-by: Oleg Drokin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed