From: Oren Laadan <orenl@xxxxxxxxxxxxxxx> * /dev/null * /dev/zero * /dev/random * /dev/urandom Changelog [v21]: - Put file_ops->checkpoint under CONFIG_CHECKPOINT Cc: linux-fsdevel@xxxxxxxxxxxxxxx Signed-off-by: Oren Laadan <orenl@xxxxxxxxxxxxxxx> Acked-by: Serge E. Hallyn <serue@xxxxxxxxxx> Tested-by: Serge E. Hallyn <serue@xxxxxxxxxx> --- drivers/char/mem.c | 6 ++++++ drivers/char/random.c | 6 ++++++ 2 files changed, 12 insertions(+), 0 deletions(-) diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 1256454..3452d1f 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c @@ -767,6 +767,9 @@ static const struct file_operations null_fops = { .read = read_null, .write = write_null, .splice_write = splice_write_null, +#ifdef CONFIG_CHECKPOINT + .checkpoint = generic_file_checkpoint, +#endif }; #ifdef CONFIG_DEVPORT @@ -783,6 +786,9 @@ static const struct file_operations zero_fops = { .read = read_zero, .write = write_zero, .mmap = mmap_zero, +#ifdef CONFIG_CHECKPOINT + .checkpoint = generic_file_checkpoint, +#endif }; /* diff --git a/drivers/char/random.c b/drivers/char/random.c index 5a1aa64..67d00b8 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -1166,6 +1166,9 @@ const struct file_operations random_fops = { .unlocked_ioctl = random_ioctl, .fasync = random_fasync, .llseek = noop_llseek, +#ifdef CONFIG_CHECKPOINT + .checkpoint = generic_file_checkpoint, +#endif }; const struct file_operations urandom_fops = { @@ -1174,6 +1177,9 @@ const struct file_operations urandom_fops = { .unlocked_ioctl = random_ioctl, .fasync = random_fasync, .llseek = noop_llseek, +#ifdef CONFIG_CHECKPOINT + .checkpoint = generic_file_checkpoint, +#endif }; /*************************************************************** -- 1.7.2.2 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html