fs/file.c: bypass file resource limit check during dup2/dup3 conditionally
If the newfd is beyond file resource limit and already pointing to
a valid file *, It means kernel is allowing the process to use fd's
beyond file resource limit. In this case, Bypass the file resource limit
check for newfd and allow recycling it.
Bug
1867572
Change-Id: I8d173ca627b3bcbe8d44cb7d1c690538316b1ccc
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/
1306503
Reviewed-by: Tony Zlatinski <tzlatinski@nvidia.com>
Tested-by: Tony Zlatinski <tzlatinski@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>