On 9/21/20 10:43 AM, Goldwyn Rodrigues wrote:
From: Goldwyn Rodrigues <rgoldwyn@xxxxxxxx> fs_info->fs_state is a filesystem bit check as opposed to inode and can be performed before we begin with write checks. This eliminates inode lock/unlock in case of error bit is set. Signed-off-by: Goldwyn Rodrigues <rgoldwyn@xxxxxxxx>
The check was there because remove_file_privs may have tripped the error starting a trans handle. That being said we could easily have been set before now, so this is fine
Reviewed-by: Josef Bacik <josef@xxxxxxxxxxxxxx> Thanks, Josef