Quantcast
Channel: lkml.org : Shesha Sreenivasamurthy
Viewing all articles
Browse latest Browse all 1267

Re: [PATCH] NFS: allow name_to_handle_at() to work for Amazon EFS.

$
0
0
Linus Torvalds writes: (Summary) On Thu, Nov 30, 2017 at 12:56 PM, NeilBrown <neilb@suse.com> wrote:

[...]

+#define MAX_HANDLE_SZ 200
This really smells for so many reasons.
This really smells for so many reasons.
Also, that really is starting to be a fairly big stack allocation, and it seems to be used in exactly one place (show_mark_fhandle), which makes me go "why is that on the stack anyway?". Could we just allocate a buffer at open time or something? Linus
Linus
Linus

Viewing all articles
Browse latest Browse all 1267

Trending Articles