[PATCH 1/1 linux-next] FS/AFFS: use inode writecount instead of local i_opencnt

2015-01-28 Thread Fabian Frederick
atomic_t i_opencnt was used to free allocation in case there were no more opens. This patch replaces affs_file_open by generic_file_open and uses FMODE_WRITE/i_writecount==1 for the task like other FS. Reviewed-by: Jan Kara Cc: Andrew Morton Signed-off-by: Fabian Frederick --- fs/affs/affs.h

[PATCH 1/1 linux-next] FS/AFFS: use inode writecount instead of local i_opencnt

2015-01-28 Thread Fabian Frederick
atomic_t i_opencnt was used to free allocation in case there were no more opens. This patch replaces affs_file_open by generic_file_open and uses FMODE_WRITE/i_writecount==1 for the task like other FS. Reviewed-by: Jan Kara j...@suse.cz Cc: Andrew Morton a...@linux-foundation.org Signed-off-by: