Re: [PATCH 38/55] xfs: remove __KERNEL__ check from xfs_dir2_leaf.c

Mark Tinguely
2013-09-06T17:29:39Z

On 09/04/13 17:05, Dave Chinner wrote:
> From: Dave Chinner<dchinner@redhat.com>
>
> It's actually an ifndef section, which means it is only included in
> userspace. however, it's deep within the libxfs code, so it's
> unlikely that the condition checked in userspace can actually occur
> (search an empty leaf) through the libxfs interfaces. i.e. if it can
> happen in usrspace, it can happen in the kernel, so remove it from
> userspace too....
>
> Signed-off-by: Dave Chinner<dchinner@redhat.com>
> ---

user equivalent of the for Linux 3.12 kernel patch 31/50.
Looks good to me.

Reviewed-by: Mark Tinguely <tinguely@sgi.com>