]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
UBI: Dispatch update notification if the volume is updated
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Fri, 29 Aug 2014 21:42:30 +0000 (18:42 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 18:10:25 +0000 (10:10 -0800)
commit6196ef9b63ce2ec5cc59f4d16ced7232e68f9bcb
treef24ec7dccd97a9671a23fda0c97ec81d481d0abc
parentea4871b6e428ea67e97c5e37b90b4f359f928d65
UBI: Dispatch update notification if the volume is updated

commit fda322a1b3b9e8ee231913c500f73c6988b1aff5 upstream.

The UBI_IOCVOLUP ioctl is used to start an update and also to
truncate a volume. In the first case, a "volume updated" notification
is dispatched when the update is done.

This commit adds the "volume updated" notification to be also sent when
the volume is truncated. This is required for UBI block and gluebi to get
notified about the new volume size.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/ubi/cdev.c