On Wed, Sep 06, 2023 at 05:59:03PM +0200, Bernd Schubert wrote:
file_remove_privs might call into notify_change(), which requires to hold an exclusive lock.
Fixes: e9adabb9712e ("btrfs: use shared lock for direct writes within EOF") Cc: Christoph Hellwig hch@infradead.org Cc: Goldwyn Rodrigues rgoldwyn@suse.com Cc: Miklos Szeredi miklos@szeredi.hu Cc: Dharmendra Singh dsingh@ddn.com Cc: David Sterba dsterba@suse.com Cc: linux-btrfs@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org Cc: stable@vger.kernel.org Signed-off-by: Bernd Schubert bschubert@ddn.com
Added to btrfs tree, with slightly reformatted comments, some minor coding style changes and updated changelog. Thanks.